import logging
import time

logging.basicConfig(level=logging.DEBUG,format='%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s')
def wrapper(func):
    def inner(*args, **kwargs):
        logging.info(f'{func.__name__}')
        ret = func(*args, **kwargs)
        return ret
    return inner

@wrapper
def func1(x, y):
    return x+y


@wrapper
def func2(a, b):
    time.sleep(0.5)
    return a * b


if __name__ == '__main__':
    func1(1, 2)
    func2(3, 4)